package user

import (
	"github.com/gin-gonic/gin"
	pb "github.com/micro/go-micro/v2/auth/service/proto"
	"github.com/micro/go-micro/v2/client"
	"github.com/morphyguo/demo/commons"
	"net/http"
)

type Info struct {
	Client client.Client
}

func (i *Info)Login(c *gin.Context)  {
	pb.NewAuthService(commons.NsSrvAuth, i.Client)
	c.JSON(http.StatusOK, gin.H{"msg":"ok"})
}
